<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登录成功</title>
    <script type="text/javascript" src="../../static/js/jquery-1.11.3.min.js"></script>
<!--    <script type="text/javascript">-->
<!--        window.onload = function f() {-->
<!--            var i =3;-->
<!--            var a = setInterval(function () {-->
<!--                i&#45;&#45;;-->
<!--                if(i<=0){-->
<!--                    var username = $("#d1").text();-->
<!--                    document.getElementById("p1").innerHTML = "登录成功，即将跳转至点菜界面";-->
<!--                    //$("#i1").prop("disabled",false);-->
<!--                    clearInterval(a);-->
<!--                    location = ("/menu/?username="+username);-->
<!--                }else {-->
<!--                    document.getElementById("p1").innerHTML = "登录成功,还有"+i+"秒跳转至点菜界面";-->
<!--                    return false;-->
<!--                }-->
<!--            },1000)-->
<!--        }-->
<!--    </script>-->
</head>
<body>
    <div id="d1"  th:text="${username}"></div>
<!--    <p id="p1">登录成功，即将跳转至点菜界面</p>-->
    <p id="p1">登录成功</p>
</body>
</html>